﻿using System.ComponentModel.DataAnnotations;

namespace FlyingHat.Core.Entities
{
    /// <summary>
    /// 日志类
    /// </summary>
    public class Log : CreateEntity
    {
        [Required, StringLength(20)]
        public string Name { get; set; } = "系统捕获";
        [Required, StringLength(10)]
        public string Level { get; set; } = string.Empty;

        public string Message { get; set; } = string.Empty;

        public string Application { get; set; } = string.Empty;
        public string Exception { get; set; } = string.Empty;
        [Required, StringLength(20)]
        public string IP { get; set; } = string.Empty;
        public string Browser { get; set; } = string.Empty;
        public string Callsite { get; set; } = string.Empty;
    }
}
